home *** CD-ROM | disk | FTP | other *** search
- // WinHacker Script
- // Copyright (c) 1996 Wedge Software
- //
- // Full Registry Example
- //
-
- [Main]
- Desc = Full Registry Example
- // Ask = Are you sure you want to run the Registry Example?
- // StartMessage = Starting Registry Example.
- // ExitMessage = Done.
-
- [Registry]
- Procs = 5
-
- [RegistryProc#1]
- // Ask = Run RegistryProc#1? (dword example)
- RootKey = HKEY_CURRENT_USER
- Path = Software\Wedge Software\Junk
- Item = A DWORD
- Action = WriteDword
- Value = (DialogAskDword#1)
-
- [DialogAskDword#1]
- Info = Enter a number (3 is the default)
- Default = 3
- Min = 1
- Max = 5
-
-
- [RegistryProc#2]
- // Ask = Run RegistryProc#2? (dword example)
- RootKey = HKEY_CURRENT_USER
- Path = Software\Wedge Software\Junk
- Item =
- Action = WriteString
- Value = (DialogAskString#1)
-
- [DialogAskString#1]
- Info = Enter a string (default is "hello")
- Default = hello
-
- [RegistryProc#3]
- // Ask = Run RegistryProc#3? (hex example)
- RootKey = HKEY_CURRENT_USER
- Path = Software\Wedge Software\Junk
- Item = Hex
- Action = WriteHex
- Value = (DialogAskHex#1)
-
- [DialogAskHex#1)
- Info = Enter a Hex number below
- Default = 77 68 39 35
-
- // Value = 77 68 39 35
- // (it says "wh95")
-
- // Create a value called "test" so we can delete it later
- [RegistryProc#4]
- Ask = Create value "test" so we can delete it later?
- RootKey = HKEY_CURRENT_USER
- Path = Software\Wedge Software\Junk
- Item = test
- Action = WriteString
- Value = this is a test string!
-
- // Delete "test"
- [RegistryProc#5]
- Ask = Delete value "test"?
- RootKey = HKEY_CURRENT_USER
- Path = Software\Wedge Software\Junk
- Item = test
- Action = DeleteValue
-
-